package comxin.demo1.charstream;

import comxin.demo1.nodestream.Bufferedoutputstream;
import org.junit.Test;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;

public class OutputStreamWriterdemo_01 {
    @Test
    public void method() throws IOException {
        OutputStreamWriter outputStreamWriter1=new OutputStreamWriter(new FileOutputStream("mywriter"));
        outputStreamWriter1.write("hello");
        outputStreamWriter1.write("world");
        outputStreamWriter1.close();

    }

}
